//
//  HTTripDeatillCommentHeaderViewController.m
//  HeartTravel
//
//  Created by lanou on 15/10/28.
//  Copyright © 2015年 陈文杰. All rights reserved.
//

#import "HTTripDeatillCommentHeaderViewController.h"
#import "UIImageView+WebCache.h"
@interface HTTripDeatillCommentHeaderViewController ()
@end

@implementation HTTripDeatillCommentHeaderViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
}

-(void)setHeaderModel:(HTTRIPDeatillHeaderModel *)headerModel
{
    _headerModel = headerModel;
    [_picture sd_setImageWithURL:[NSURL URLWithString:headerModel.list_img]];
    //_picture.contentMode = UIViewContentModeCenter;
  
    [_autherIcon sd_setImageWithURL:[NSURL URLWithString:headerModel.avatar]];
    _autherIcon.layer.cornerRadius = 20;
    _autherIcon.layer.masksToBounds = YES;
    
    _dateNumber.text = [NSString stringWithFormat:@"发起体验:%@",headerModel.sendExperienceNum];
    _dateNumber.font = [UIFont systemFontOfSize:12];
    
    _jianxingWay.text = headerModel.waycontent;
   
    _jianxingWay.numberOfLines = 0;
    
    _content.text = headerModel.content;
  
    _content.numberOfLines = 0;
    
    _autherName.text = [NSString stringWithFormat:@"发起者:%@",headerModel.user_name];
    
    _titleLable.text = headerModel.experience_title;

}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
